home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / po.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  3KB  |  95 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Paolo Maggi
  5.  Copyright (C) 2003 Paolo Maggi
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="gettext-translation" _name="gettext translation" version="2.0" _section="Others">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-po;text/x-pot;text/x-pox;text/x-gettext-translation;text/x-gettext-translation-template</property>
  26.     <property name="globs">*.po;*.pot</property>
  27.     <property name="line-comment-start">#</property>
  28.   </metadata>
  29.  
  30.   <styles>
  31.     <style id="comment" _name="Comment" map-to="def:comment"/>
  32.     <style id="location" _name="Location" map-to="def:comment"/>
  33.     <style id="string" _name="String" map-to="def:string"/>
  34.     <style id="fuzzy" _name="Fuzzy" map-to="def:note"/>
  35.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  36.     <!-- FIXME make it some nice name and mark it translatable -->
  37.     <style id="special" _name="Special" map-to="def:special-char"/>
  38.   </styles>
  39.  
  40.   <definitions>
  41.     <context id="string" style-ref="string">
  42.       <start>"</start>
  43.       <end>"</end>
  44.       <include>
  45.         <context ref="def:escape"/>
  46.         <context ref="def:line-continue"/>
  47.         <context ref="def:email-address"/>
  48.         <context ref="def:net-address"/>
  49.         <context id="mnemonic" style-ref="special">
  50.           <match>[&_][a-zA-Z]</match>
  51.         </context>
  52.         <context id="tag" style-ref="special">
  53.       <match><[a-zA-Z\=\"\/ ]+></match>
  54.     </context>
  55.         <context ref="python:format" style-ref="special"/>
  56.         <context ref="c:printf" style-ref="special"/>
  57.       </include>
  58.     </context>
  59.     <context id="format" style-ref="comment" end-at-line-end="true">
  60.       <start>^#,</start>
  61.       <include>
  62.         <context ref="def:escape"/>
  63.         <context ref="def:line-continue"/>
  64.         <context id="fuzzy" style-ref="fuzzy">
  65.           <match>\bfuzzy\b</match>
  66.         </context>
  67.       </include>
  68.     </context>
  69.     <context id="location" style-ref="location" end-at-line-end="true">
  70.       <start>^#:</start>
  71.       <include>
  72.         <context ref="def:escape"/>
  73.         <context ref="def:line-continue"/>
  74.       </include>
  75.     </context>
  76.     <context id="keyword" style-ref="keyword">
  77.       <prefix>^</prefix>
  78.       <keyword>domain</keyword>
  79.       <keyword>msgid</keyword>
  80.       <keyword>msgid_plural</keyword>
  81.       <keyword>msgstr</keyword>
  82.       <keyword>msgctxt</keyword>
  83.     </context>
  84.     <context id="gettext-translation">
  85.       <include>
  86.         <context ref="string"/>
  87.         <context ref="format"/>
  88.         <context ref="location"/>
  89.         <context ref="def:shell-like-comment" style-ref="comment"/>
  90.         <context ref="keyword"/>
  91.       </include>
  92.     </context>
  93.   </definitions>
  94. </language>
  95.